package com.job.admin.model.audit.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_audit_posts")
public class AuditPosts {
    @TableId(value = "audit_posts_id",type = IdType.ASSIGN_UUID)
    private String auditPostsId;

    @TableField("posts_id")
    private String postsId;

    @TableField("user_id")
    private String userId;

    @TableField("status")
    private Integer status;

    @TableField("reason")
    private String reason;

    @TableField("audit_user")
    private String auditUser;

    @TableField("submission_time")
    private String submissionTime;

    @TableField("audit_time")
    private LocalTime auditTime;

    public AuditPosts(String postsId, String userId, String submissionTime) {
        this.postsId = postsId;
        this.userId = userId;
        this.submissionTime = submissionTime;
    }
}
